Optimal. Leaf size=120 \[ \frac {15 \tanh ^{-1}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{8 f}-\frac {15 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{8 f}-\frac {5 \sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{8 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^5(e+f x)}{4 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3255, 3286,
2672, 294, 327, 212} \begin {gather*} \frac {\tan ^5(e+f x) \sqrt {a \cos ^2(e+f x)}}{4 f}-\frac {5 \tan ^3(e+f x) \sqrt {a \cos ^2(e+f x)}}{8 f}-\frac {15 \tan (e+f x) \sqrt {a \cos ^2(e+f x)}}{8 f}+\frac {15 \sec (e+f x) \sqrt {a \cos ^2(e+f x)} \tanh ^{-1}(\sin (e+f x))}{8 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 294
Rule 327
Rule 2672
Rule 3255
Rule 3286
Rubi steps
\begin {align*} \int \sqrt {a-a \sin ^2(e+f x)} \tan ^6(e+f x) \, dx &=\int \sqrt {a \cos ^2(e+f x)} \tan ^6(e+f x) \, dx\\ &=\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \sin (e+f x) \tan ^5(e+f x) \, dx\\ &=\frac {\left (\sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^3} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\sqrt {a \cos ^2(e+f x)} \tan ^5(e+f x)}{4 f}-\frac {\left (5 \sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^4}{\left (1-x^2\right )^2} \, dx,x,\sin (e+f x)\right )}{4 f}\\ &=-\frac {5 \sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{8 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^5(e+f x)}{4 f}+\frac {\left (15 \sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{1-x^2} \, dx,x,\sin (e+f x)\right )}{8 f}\\ &=-\frac {15 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{8 f}-\frac {5 \sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{8 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^5(e+f x)}{4 f}+\frac {\left (15 \sqrt {a \cos ^2(e+f x)} \sec (e+f x)\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sin (e+f x)\right )}{8 f}\\ &=\frac {15 \tanh ^{-1}(\sin (e+f x)) \sqrt {a \cos ^2(e+f x)} \sec (e+f x)}{8 f}-\frac {15 \sqrt {a \cos ^2(e+f x)} \tan (e+f x)}{8 f}-\frac {5 \sqrt {a \cos ^2(e+f x)} \tan ^3(e+f x)}{8 f}+\frac {\sqrt {a \cos ^2(e+f x)} \tan ^5(e+f x)}{4 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 75, normalized size = 0.62 \begin {gather*} \frac {\sqrt {a \cos ^2(e+f x)} \sec ^5(e+f x) \left (60 \tanh ^{-1}(\sin (e+f x)) \cos ^4(e+f x)-5 \sin (e+f x)-15 \sin (3 (e+f x))-2 \sin (5 (e+f x))\right )}{32 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 7.11, size = 120, normalized size = 1.00
method | result | size |
default | \(\frac {a \left (16 \left (\cos ^{4}\left (f x +e \right )\right ) \sin \left (f x +e \right )+18 \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-4 \sin \left (f x +e \right )+\left (15 \ln \left (\sin \left (f x +e \right )-1\right )-15 \ln \left (1+\sin \left (f x +e \right )\right )\right ) \left (\cos ^{4}\left (f x +e \right )\right )\right )}{16 \left (1+\sin \left (f x +e \right )\right ) \left (\sin \left (f x +e \right )-1\right ) \cos \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(120\) |
risch | \(\frac {i \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{2 i \left (f x +e \right )}}{2 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}-\frac {i \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}}{2 \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) f}+\frac {i \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, \left (9 \,{\mathrm e}^{8 i \left (f x +e \right )}+{\mathrm e}^{6 i \left (f x +e \right )}-{\mathrm e}^{4 i \left (f x +e \right )}-9 \,{\mathrm e}^{2 i \left (f x +e \right )}\right )}{4 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{5}}+\frac {15 \ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{i \left (f x +e \right )}}{8 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}-\frac {15 \ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, {\mathrm e}^{i \left (f x +e \right )}}{8 f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}\) | \(327\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 2144 vs.
\(2 (113) = 226\).
time = 2.12, size = 2144, normalized size = 17.87 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 87, normalized size = 0.72 \begin {gather*} -\frac {{\left (15 \, \cos \left (f x + e\right )^{4} \log \left (-\frac {\sin \left (f x + e\right ) - 1}{\sin \left (f x + e\right ) + 1}\right ) + 2 \, {\left (8 \, \cos \left (f x + e\right )^{4} + 9 \, \cos \left (f x + e\right )^{2} - 2\right )} \sin \left (f x + e\right )\right )} \sqrt {a \cos \left (f x + e\right )^{2}}}{16 \, f \cos \left (f x + e\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )} \tan ^{6}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 251 vs.
\(2 (113) = 226\).
time = 1.97, size = 251, normalized size = 2.09 \begin {gather*} -\frac {{\left (15 \, \log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - 15 \, \log \left ({\left | \frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 2 \right |}\right ) \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - \frac {32 \, \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right )}{\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} - \frac {4 \, {\left (7 \, {\left (\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}^{3} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right ) - 36 \, {\left (\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \mathrm {sgn}\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 1\right )\right )}}{{\left ({\left (\frac {1}{\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )} + \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}^{2} - 4\right )}^{2}}\right )} \sqrt {a}}{16 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (e+f\,x\right )}^6\,\sqrt {a-a\,{\sin \left (e+f\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________